<div>
	<form method="post" id="form_${action_id}" name="form_${action_id}" enctype="multipart/form-data">
	<input id="entity.type" name="entity.type.id" value="${moduleLinkTypeId?default('')}" type="hidden" style="width:300px;" class="easyui-validatebox"  />
    <table class="form-table" cellpadding=3>
    	<tr>
            <td>${action.getDatagridTitle('value')}:</td>
            <#if type.type==1>
				<input id="entity.value" name="entity.value" style="width:300px;"  type="hidden"></input>
				<td><input id="value_name_${action_id}" onClick="selectArticle_${action_id}()" readonly="readonly" style="width:300px;" class="easyui-validatebox"  ></input></td>
            <#elseif  type.type==2>
            	<input type="file" id="entity_icon_${action_id}" name="entity.value" onchange="$('#entity_icon_${action_id}_filename').empty();$('#entity_icon_${action_id}_filename').text(this.value);" style="display: none" />
            	<td>
            		<a href="javascript:;;" onclick="$('#entity_icon_${action_id}').click();" class="easyui-linkbutton" data-options="iconCls:'icon-save'">选择文件</a>
					<span id="entity_icon_${action_id}_filename"></span>
				</td>
			<#else>
				<input id="entity.value" name="entity.value" style="width:300px;"  type="hidden"></input>
				<td><input id="value_name_${action_id}" onClick="selectProduct_${action_id}()" readonly="readonly" style="width:300px;" class="easyui-validatebox"  ></input></td>
            </#if>
        </tr>
        <#if moduleLinkTypeId!=5>
        <tr>
            <td>${action.getDatagridTitle('url')}:</td>
            <td><input id="entity.value" name="entity.url" style="width:300px;" class="easyui-validatebox"  ></input></td>
        </tr>
        </#if>
        <tr>
            <td>${action.getDatagridTitle('order')}:</td>
            <td><input id="entity.order" name="entity.order" class="easyui-numberspinner" style="width:120px;" data-options="precision:0,min:0,value:0"></td>
        </tr>
    </table>
	</form>
</div>
